package com.ruoyi.sj.mapper;

import com.ruoyi.sj.domain.Withdraw;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 提现记录 数据层
 * 
 * @author tyc@yanyu.com
 * @date 2018-11-30
 */
public interface WithdrawMapper 
{
	/**
     * 查询提现记录信息
     * 
     * @param id 提现记录ID
     * @return 提现记录信息
     */
	public Withdraw selectWithdrawById(Long id);
	
	/**
     * 查询提现记录列表
     * 
     * @param withdraw 提现记录信息
     * @return 提现记录集合
     */
	public List<Withdraw> selectWithdrawList(Withdraw withdraw);
	
	/**
     * 新增提现记录
     * 
     * @param withdraw 提现记录信息
     * @return 结果
     */
	public int insertWithdraw(Withdraw withdraw);
	
	/**
     * 修改提现记录
     * 
     * @param withdraw 提现记录信息
     * @return 结果
     */
	public int updateWithdraw(Withdraw withdraw);
	
	/**
     * 删除提现记录
     * 
     * @param id 提现记录ID
     * @return 结果
     */
	public int deleteWithdrawById(Long id);
	
	/**
     * 批量删除提现记录
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteWithdrawByIds(String[] ids);

	public int updateWithDrawByStatus(@Param("id") Long memberId, @Param("status") String status);

	public BigDecimal selectMoneyById(@Param("id") Long memberId);

	public String selectMemberIdById(@Param("id") Long id);
	
}